LD= -lSDLmain -lSDL_gfx -lSDL

main: Window.o Die.o Board.o BoardController.o Observer.o Subject.o \
	BoardView.o
	g++ -o main $(LD) main.cpp Window.o Die.o Board.o \
	BoardController.o Observer.o Subject.o BoardView.o


Window.o:
	g++ -c View/Window.cpp

Die.o:
	g++ -c Model/Die.cpp

Board.o:
	g++ -c Model/Board.cpp

BoardController.o:
	g++ -c Controller/BoardController.cpp

BoardView.o:
	g++ -c View/BoardView.cpp

Observer.o:
	g++ -c Model/Observer.cpp

Subject.o:
	g++ -c Model/Subject.cpp

clean:
	rm -rf *.o main
